// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import axios from 'axios'
import store from './store'

// import { Header, Swipe, SwipeItem, Button, Lazyload } from 'mint-ui';
import MintUI from 'mint-ui'

import 'mint-ui/lib/style.css'
import './assets/mui/css/mui.css'
import './assets/mui/css/icons-extra.css'
import './assets/private/css/style.scss'
import App from './App'
import router from './router'

// register global utility filters.
import filter from './filters/filter'
Object.keys(filter).forEach(key => {
    Vue.filter(key, filter[key])
});

/*使用axios插件*/
axios.defaults.baseURL = 'http://www.liulongbin.top:3005';
Vue.prototype.$axios = axios;

// Install Preview Plugin
import VuePreview from 'vue-preview'
Vue.use(VuePreview);
Vue.use(MintUI);

// Vue.component(Header.name, Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
// Vue.use(Lazyload);


Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,  //挂载 store 状态管理对象
    components: { App },
    render: c=>c(App)     // 等同于template: '<App/>'

});
